module.exports = (sequelize, DataTypes) => {
  const model = sequelize.define(
    "RoleMenu",
    {
      roleId: {
        type: DataTypes.UUID,
        primaryKey: true,
      },
      menuId: {
        type: DataTypes.UUID,
        primaryKey: true,
      },
      btnIds: {
        type: DataTypes.STRING,
        comment: "菜单下的按钮信息",
        allowNull: true,
      },
    },
    {
      timestamps: false,
      tableName: "associate_role_menu",
      comment: "角色菜单表",
    }
  );
  return model;
};
